package firstPalindrome;

public class Solution {
    public String firstPalindrome(String[] words) {
        for (String word: words) {
            boolean bol = true;
            for (int i = 0,j=word.length()-1; i < j ; i++,i--) {
                if(word.charAt(i) != word.charAt(j)) {
                    bol = false;
                    break;
                }
            }
            if(bol) {
                return word;
            }
        }
        return "";
    }
}
